//
//  CategoryCollectionViewCell.m
//  App-MyFairldy
//
//  Created by dlios on 15-5-25.
//  Copyright (c) 2015年 客官大大. All rights reserved.
//

#import "CategoryCollectionViewCell.h"

@implementation CategoryCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView
{
    self.label1 = [[UILabel alloc] init];
    [self.contentView addSubview:self.label1];
    self.iconImage = [[UIImageView alloc] init];
    [self.contentView addSubview:self.iconImage];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.iconImage.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    self.label1.frame = CGRectMake(self.iconImage.frame.origin.x, self.iconImage.frame.origin.y + 50, self.contentView.frame.size.width + 40, self.contentView.frame.size.height - 30);
}
- (void)dealloc
{
    [_label1 release];
    [_iconImage release];
    [super dealloc];
}
@end
